<template>
  <div class="classbody">
    <UserClass
      :has-user="hasUser"
      :user-class="userClass"
      :all-class="allClass"
    />
    <el-divider></el-divider>
    <AllClass :all-class="allClass" />
  </div>
</template>

<script>
import UserClass from '@/components/classmenu/UserClass'
import AllClass from '@/components/classmenu/AllClass'
export default {
  name: 'ClassMenu',
  components: {
    UserClass,
    AllClass
  },
  computed: {
    allClass() {
      return this.$store.state.classification.allClass
    },
    userClass() {
      return this.$store.state.classification.userClass
    },
    hasUser() {
      return this.$store.state.user.hasUser
    }
  }
}
</script>

<style lang="scss" scoped>
.classbody {
  margin: 0 auto;
  padding: 40px 60px;
  width: $--typeArea;
  height: 1000px;
  background: #fff;
}
/deep/ .classbody__title {
  margin-bottom: 20px;
  @include font(16px, 700);
}
/deep/ .el-divider--horizontal {
  margin: 16px 0;
}
</style>
